using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
namespace KFGame.Editor
{

    public class KFGFEditor
    {
        /// <summary>
        /// 
        /// 框架配置
        /// </summary>
        [MenuItem("KFGF/KFGF Config")]
        static void ConfigEdit()
        {
            KFGFEditWindow.showWindow("KFConfig");
        }

        /// <summary>
        /// 键盘模拟事件配置 
        /// </summary>
        [MenuItem("KFGF/KeyBoard Simulation")]
        static void KeyBoardSimulation()
        {
            KFGFEditWindow.showWindow("KeyBoardSimulation");
        }


        /// <summary>
        /// COM 串口配置
        /// </summary>
        [MenuItem("KFGF/SeralPort Config")]
        static void SeralPortConfig()
        {
            KFGFEditWindow.showWindow("SeralPortConfig");
        }


        /// <summary>
        /// 接口事件配置 
        /// </summary>
        [MenuItem("KFGF/SeralPort Events")]
        static void SeralPortEvents()
        {
            KFGFEditWindow.showWindow("SeralPortEventConfig");
        }

        /// <summary>
        /// 事件转换成KF事件配置
        /// 
        /// </summary>
        [MenuItem("KFGF/Events to KFEvents")]
        static void EventsToKFEvents()
        {
            KFGFEditWindow.showWindow("SPEtoKFE");
        }
         /// <summary>
        /// 帮助
        /// 
        /// </summary>
        [MenuItem("KFGF/Help")]
        static void OpenHelps()
        {
            Application.OpenURL("https://gitee.com/kookoo/KFGF");
        }
    }
}